package com.guigu.ababa.ababaclassroom.service;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Service;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

@FeignClient(value = "sailing")
@Service
public interface DuanxinService {

    //发送短信验证码服务
    @GetMapping("/sailing/generate")//指定请求的URL部分
    String Phone(@RequestParam String phone);

    //验证验证码服务返回boolean值
    @GetMapping("/sailing/verify")//指定请求的URL部分
    Boolean verify(@RequestParam String keys);
}
